package com.briup.corejava.day08.test;

import com.briup.corejava.day08.pojo.Programmer;

public class EmployeeTest_2 {
    public static void main(String[] args) {
        Programmer programmer = new Programmer("1001","张三","资深");
        programmer.doWork(); // 就近原则，自己有方法，就用自己的，没有就用父类的
        System.out.println(programmer);
        System.out.println(programmer.toString());

        Programmer programmer1 = new Programmer("1002","李四","初级");
        System.out.println(programmer1);

    }
}
